package com.five;

import com.six.config.MyEnable;
import com.six.config.MyImportSelector;
import com.six.config.UserConfig;
import com.six.pojo.User;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Import;

@SpringBootApplication
//@ComponentScan(basePackages = {"com.six","com.five"})
//@Import(UserConfig.class)
//@Import(MyImportSelector.class)
@MyEnable
public class Springboot05Application {

	public static void main(String[] args) {

		ConfigurableApplicationContext applicationContext = SpringApplication.run(Springboot05Application.class, args);

		//Object user = applicationContext.getBean("user11");

		User user = applicationContext.getBean(User.class);
		System.out.println(user);
	}

}
